<?php
session_start();
require_once("../lib/standard.php");

$login = Globals::parametros("login");
$onoma = Globals::parametros("onoma");
$email = Globals::parametros("email");
$kodikos = sha1(Globals::parametros("kodikos"));

$query = "INSERT INTO `pektis` (`login`,`onoma`,`email`,`kodikos`) " .
	"VALUES ('" . 
	$globals->asfales($login) . "', '" . 
	$globals->asfales($onoma) . "', '" .
	$globals->asfales($email) . "', '" .
	$globals->asfales($kodikos) . "')";
@mysqli_query($globals->db, $query);
if (mysqli_affected_rows($globals->db) == 1) {
	$_SESSION['login'] = $login;
	die("@ok@");
}

print "Απέτυχε η εγγραφη του παικτη \"" . $login ."\"";

?>

